/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package atm.gui;

import com.alee.laf.label.WebLabel;
import com.alee.laf.panel.WebPanel;
import java.awt.GridLayout;
import javax.swing.ImageIcon;

/**
 *
 * @author Quark
 */
public class ScheduleMiniPanel extends WebPanel {
    String header; // adres bankomatu
    int nominal10, nominal20, nominal50, nominal100; // liczba bankotów w bankomacie
    
    WebLabel headerLabel;
    WebLabel nominal10Label, nominal20Label, nominal50Label, nominal100Label, nominal200Label;

    public ScheduleMiniPanel(String header, int nominal10, int nominal20, int nominal50, int nominal100) {
        this.setLayout(new GridLayout(6, 1));
        
        this.header = header;
        this.nominal10 = nominal10;
        this.nominal20 = nominal20;
        this.nominal50 = nominal50;
        this.nominal100 = nominal100;
        
        headerLabel = new WebLabel(header, WebLabel.CENTER);
        
        nominal10Label = new WebLabel(Integer.toString(nominal10), new ImageIcon(this.getClass().getResource("cash/10.png")), WebLabel.LEFT);
        nominal20Label = new WebLabel(Integer.toString(nominal20), new ImageIcon(this.getClass().getResource("cash/20.png")), WebLabel.LEFT);
        nominal50Label = new WebLabel(Integer.toString(nominal50), new ImageIcon(this.getClass().getResource("cash/50.png")), WebLabel.LEFT);
        nominal100Label = new WebLabel(Integer.toString(nominal100), new ImageIcon(this.getClass().getResource("cash/100.png")), WebLabel.LEFT);
        
        nominal10Label.setMargin(3);
        nominal20Label.setMargin(3);
        nominal50Label.setMargin(3);
        nominal100Label.setMargin(3);
        
        this.setUndecorated(false);
        this.setMargin(5);
        
        this.add(headerLabel);
        this.add(nominal10Label);
        this.add(nominal20Label);
        this.add(nominal50Label);
        this.add(nominal100Label);
    }

    public WebLabel getHeaderLabel() {
        return headerLabel;
    }

    public WebLabel getNominal10Label() {
        return nominal10Label;
    }

    public WebLabel getNominal20Label() {
        return nominal20Label;
    }

    public WebLabel getNominal50Label() {
        return nominal50Label;
    }

    public WebLabel getNominal100Label() {
        return nominal100Label;
    }


    
    
    
}
